package com.yonyou.iuap.jxzy.controller;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStreamReader;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.yonyou.iuap.base.web.BaseController;
import com.yonyou.iuap.jxzy.service.CheckWaterService;


/**
 * 测水对接控制层
 * @author WXF
 *
 */
@Controller
@RequestMapping(value="/jx_measuringWater")
public class CheckWaterController extends BaseController{
	
	private Logger logger = LoggerFactory.getLogger(MonitorSampleController.class);
	
	@Autowired
	private CheckWaterService checkWaterService;
	
    @RequestMapping(value = "/save", method = {RequestMethod.POST})
    @ResponseBody
    public Object save(HttpServletRequest request, HttpServletResponse response) throws IOException{
    	this.logger.info("开始进入checkWaterService.save()");
    	this.checkWaterService.save();	
        return "操作成功";
    }
	
}
